FROM openjdk:8u121-jdk-alpine
ENV JAR_FILE start.jar
ENV profile test
ENV ENVIRONMENT test
ENV NACOS_USERNAME nacos
ENV NACOS_PASSWORD Qiruan123!
ENV NACOS_SERVER_ADDRESS dev.yuexi.com:8848
#Set Beijing time zone
RUN echo 'Asia/Shanghai'>/etc/timezone
ADD ./target/$JAR_FILE /app/
CMD java -Xmx500m -jar /app/$JAR_FILE
EXPOSE 8906
